/*
 * NewJavaFXEmpty.fx
 *
 * Created on 12.09.2009, 0:09:54
 */

package javafx179labs.sorokin.lab1;


import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.paint.*;
import javafx.scene.shape.*;
import javafx.scene.transform.*;
import javafx.scene.text.*;
import javafx.scene.effect.*;
import javafx.scene.effect.light.*;


/**
 * @author Krazyzy
 */

function circle (x:Integer, y:Integer) {
    return Circle {
        centerX: x
        centerY: y
        radius: 7
        fill: Color.VIOLET
        effect: InnerShadow { offsetX: 4 offsetY: 4 }
       }
        }

Stage {
  title: "Концепт пакмэна"
  width: 500
  height: 500
    visible: true
  scene: Scene {
    content: [
      Rectangle {
        effect: InnerShadow { offsetX: 4 offsetY: 4 }
        x: 50 y: 50
        width: 400 height: 400
        arcWidth: 15 arcHeight: 15
        fill: Color.RED
      }
      Circle {
        centerX: 250
        centerY: 250
        radius: 200
        fill: Color.SILVER
        stroke: Color.RED
      }
      Arc {
    effect: MotionBlur { radius: 15 angle: -30 }
    centerX: 390  centerY: 190
    radiusX: 25  radiusY: 25
    startAngle: 45  length: 270
    type: ArcType.ROUND
    fill: Color.YELLOW
    transforms: [
    Rotate {
      angle: 40
         }
          ]
         }

         Ellipse {
 effect: DropShadow { offsetY: 4 }
 centerX: 250  centerY: 250
 radiusX: 50  radiusY: 25
 fill: Color.GREEN
 }
 Text {
    x: 227
    y: 254
    fill: Color.BLUE
    font: Font.font(null, FontWeight.BOLD, 12);
    content: "БОНУС"
    effect: Lighting {
    light: DistantLight { azimuth: -135 elevation: 30 }
    surfaceScale: 5}
}
Rectangle {
        x: 200 y: 100
        width: 20 height: 30
        arcWidth: 15 arcHeight: 15
        fill: Color.AQUA
        transforms: Shear { x: -0.35 y: 0 }
      }
      Circle {
        centerX: 167
        centerY: 107
        radius: 3
        fill: Color.BLACK
        stroke: Color.WHITE}
        Circle {
        centerX: 175
        centerY: 107
        radius: 3
        fill: Color.BLACK
        stroke: Color.WHITE}

        Rectangle {
        x: 450 y: 350
        width: 20 height: 30
        arcWidth: 15 arcHeight: 15
        fill: Color.ORANGE
        transforms: Shear { x: -0.35 y: 0 }
      }
      Circle {
        centerX: 339
        centerY: 357
        radius: 3
        fill: Color.BLACK
        stroke: Color.WHITE}
        Circle {
        centerX: 330
        centerY: 357
        radius: 3
        fill: Color.BLACK
        stroke: Color.WHITE}

         Circle {
        centerX: 191
        centerY: 387
        radius: 3
        fill: Color.BLACK
        stroke: Color.WHITE}
        Circle {
        centerX: 179.5
        centerY: 382
        radius: 3
        fill: Color.BLACK
        stroke: Color.WHITE}

circle (390, 190),
circle (70, 300),
circle (200, 420),
circle (300, 320),
circle (165, 245),
circle (223, 200),
circle (147, 350),
circle (300, 150),
circle (250, 120),
circle (370, 300),
]
  }
}
